var e = require, t = module, n = exports;

Object.defineProperty(n, "__esModule", {
    value: !0
});

var o = e("GameData"), i = e("enum"), a = e("Global"), r = e("SkinView"), s = e("EquipManager"), c = function() {
    function e() {
        this.value = new r.SkinItemValue();
    }
    return e.getInstance = function() {
        return this._manager || (this._manager = new e()), this._manager;
    }, e.prototype.getProp = function(e, t, i, p, r) {
        return void 0 === i && (i = o.GD.backEquipIdx), void 0 === p && (p = o.GD.headEquipIdx), 
        void 0 === r && (r = o.GD.equipDataList), -1 < p && (e = s.default.getInstance().getProp(p, e, t, r)), 
        e = -1 < i ? s.default.getInstance().getProp(i, e, t, r) : e;
    }, e.prototype.getAtk = function(e, t, p, r) {
        return void 0 === p && (p = o.GD.backEquipIdx), void 0 === r && (r = o.GD.headEquipIdx), 
        this.getProp(a.G.getGunModel(e).ATK + a.G.getPersonModel(t).ATK, i.EquipPropType.ATK_P, p, r);
    }, e.prototype.getMove = function(e, t, p, r) {
        return void 0 === p && (p = o.GD.backEquipIdx), void 0 === r && (r = o.GD.headEquipIdx), 
        this.getProp(a.G.getGunModel(e).SPE + a.G.getPersonModel(t).SPE, i.EquipPropType.MOVE_P, p, r);
    }, e.prototype.getCri = function(e, t, p, r) {
        return void 0 === p && (p = o.GD.backEquipIdx), void 0 === r && (r = o.GD.headEquipIdx), 
        this.getProp(a.G.getGunModel(e).CRI + a.G.getPersonModel(t).CRI, i.EquipPropType.CRI_P, p, r);
    }, e.prototype.getSpe = function(e, t, p, r) {
        return void 0 === p && (p = o.GD.backEquipIdx), void 0 === r && (r = o.GD.headEquipIdx), 
        this.getProp(a.G.getGunModel(e).IDLE + a.G.getPersonModel(t).IDLE, i.EquipPropType.SPE_P, p, r);
    }, e.prototype.getRan = function(e, t, p) {
        return void 0 === t && (t = o.GD.backEquipIdx), void 0 === p && (p = o.GD.headEquipIdx), 
        this.getProp(a.G.getGunModel(e).RAN, i.EquipPropType.RAN_P, t, p);
    }, e.prototype.getMiss = function(e, t) {
        return void 0 === e && (e = o.GD.backEquipIdx), void 0 === t && (t = o.GD.headEquipIdx), 
        this.getProp(0, i.EquipPropType.MISS_P, e, t);
    }, e.prototype.getCool = function(e, t, p) {
        return void 0 === t && (t = o.GD.backEquipIdx), void 0 === p && (p = o.GD.headEquipIdx), 
        this.getProp(a.G.getGunModel(e).time, i.EquipPropType.MISS_P, t, p);
    }, e.prototype.getHp = function(e, t, p, r) {
        return void 0 === p && (p = o.GD.backEquipIdx), void 0 === r && (r = o.GD.headEquipIdx), 
        this.getProp(a.G.getGunModel(e).HP + a.G.getPersonModel(t).HP, i.EquipPropType.HP_V, p, r);
    }, e._manager = null, e;
}();

n.default = c;